package com.local.designpatterns.normalfactorymethod;

public enum Factory {
    INSTANCE;
	public Wife getFactory(String wife) {
		if("AXue".equals(wife)) {
			return new AXue();
		}else if("XiaoJing".equals(wife)){
			return new XiaoJing();
		}else if("XiaoYue".equals(wife)){
			return new XiaoYue();
		}else {
			System.out.println("少女祈祷中...");
			return null;
		}
	}
}
